import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:"/demo1",
    component:()=>import("../components/axiosdemo1.vue")
  },
  {
    path:"/demo2",
    component:()=>import("../components/axiosdemo2.vue")
  },
  {
    path:"*",
    redirect:"/demo2"
  }
  
]

const router = new VueRouter({
  routes
})

export default router
